package com.vini.web.pages;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.extensions.ajax.markup.html.tabs.AjaxTabbedPanel;
import org.apache.wicket.extensions.markup.html.tabs.AbstractTab;
import org.apache.wicket.extensions.markup.html.tabs.ITab;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.model.Model;
import com.vini.web.panels.CompanyPanel;
import com.vini.web.panels.IndividualPanel;

public class SignUp extends BasePage {

	private static final long serialVersionUID = 1L;
		
	List<ITab> signupTabs;	
		
		
	public SignUp() {
		
		signupTabs = new ArrayList<ITab>();
		signupTabs.add(new AbstractTab(new Model<String>("Individual")) {
			private static final long serialVersionUID = 1L;

			@Override
			public WebMarkupContainer getPanel(String panelId) {
				return new IndividualPanel(panelId);
			}
		});
		signupTabs.add(new AbstractTab(new Model<String>("Company")) {
			private static final long serialVersionUID = 1L;

			@Override
			public WebMarkupContainer getPanel(String panelId) {
				return new CompanyPanel(panelId);
			}
		});
		add(new AjaxTabbedPanel<ITab>("tabs", signupTabs));
		
	}
	
	

}
